<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="WEB-INF/jsp/comm-header.jsp" %>
<!DOCTYPE html>
<html lang="zh-CN">
<%     
	response.setHeader("P3P","CP=CAO PSA OUR");
%>  
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <c:set var="contextPath" value="${pageContext.request.contextPath}" scope="application"/>
    <title>正在加载应用</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

	<link rel="shortcut icon" href="${contextPath}/favicon.ico" type="image/x-icon" />
    <link href="${contextPath}/resources/yhzx/css/bootstrap.css" rel="stylesheet">
    <link href="${contextPath}/resources/yhzx/css/login.css" rel="stylesheet">
    <link href="${contextPath}/resources/yhzx/css/entypo-icon.css" rel="stylesheet">
    
    <script src="${contextPath}/resources/js/jquery.min.js"></script>
    <script src="/UcConfig/uca/GlobalParams.js"></script>
    <script src="${contextPath}/resources/js/jquery-extention.js"></script>
   	<script src="${contextPath}/resources/myjs/UCenterCommon.js"></script>
</head>

<body style="background-color:#f9f9fb">

<form id="oaRedirectForm" method="post" action="/DooneUserCenterAuthz/oauth/oaRedirectAuth">
	<input type="hidden" id="returnParams" name="returnParams" value="<%=request.getParameter("return_params")%>">
	<input type="hidden" id="token" name="token" value="<%=request.getParameter("token")%>">
	<input type="hidden" id="staffId" name="staffId" value="<%=request.getParameter("staffId")%>">
	<input type="hidden" id="appKey" name="appKey" value="<%=request.getParameter("app_key")%>">
	<input type="hidden" id="loginTime" name="loginTime" value="<%=request.getParameter("long_time")%>">
	<input type="hidden" id="version" name="version" value="<%=request.getParameter("version")%>">
	<input type="hidden" id="intVersion" name="intVersion" value="<%=request.getParameter("int_version")%>">
	<input type="hidden" id="callUrl" name="callUrl" value="<%=request.getParameter("call_url")%>">
	<input type="hidden" id="secret" name="secret" value="<%=request.getParameter("secret")%>">
	<input type="hidden" id="authenticator" name="authenticator" value="<%=request.getParameter("authenticator")%>">
	<input type="hidden" id="ucAppSecret" name="ucAppSecret" value="<%=request.getParameter("uc_app_secret")%>">
	<input type="hidden" id="client_id" name="client_id" value="<%=request.getParameter("client_id")%>">
	<input type="hidden" id="client_secret" name="client_secret" value="<%=request.getParameter("uc_app_secret")%>">
	<input type="hidden" id="response_type" name="response_type">
	<input type="hidden" id="scope" name="scope">
	<input type="hidden" id="redirect_uri" name="redirect_uri">
	<input type="hidden" id="state" name="state">
</form>
<div>
	<label id="label">加载中...</label>
</div>

<script type="text/javascript">
    (function(){
    	UCenterCommon.getWedoUserInfo();
	   	var countdown = 30;
	    settime();
		function settime() {
			if (countdown == 0) {
				$("#label").text("您当前网络无法连接服务器，请检查网络后再重新尝试.");
				return;
			} else {
				$("#label").text("加载中..."+countdown+"秒");
				countdown--;
			}
			setTimeout(function() {
				settime()
			}, 1000)
		}
    }
    )();
</script>
</body>
</html>